package com.onenine.app.model;

import java.util.Map;

public class ThirdPlatform {

    private String platform;
    private String openId;
    private String name;
    private String province;
    private String city;
    private String iconurl;
    private String gender;
    private String birthday;

    public ThirdPlatform(Map<String, String> map) {
        platform = map.get("platform");
        openId = map.get("openid");
        name = map.get("name");
        province = map.get("province");
        city = map.get("city");
        iconurl = map.get("iconurl");
        gender = map.get("gender");
    }

    public String getOpenId() {
        return openId == null ? "" : openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getName() {
        return name == null ? "" : name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getProvince() {
        return province == null ? "" : province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city == null ? "" : city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getIconurl() {
        return iconurl == null ? "" : iconurl;
    }

    public void setIconurl(String iconurl) {
        this.iconurl = iconurl;
    }

    public String getGender() {
        return gender == null ? "" : gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getPlatform() {
        return platform == null ? "" : platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    public String getBirthday() {
        return birthday == null ? "" : birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }
}
